package book;
public class booklist {
    private book[]books=new book[10];
    private int bookcontent=3;
    public booklist(){
        books[0]=new book("三国演义","罗贯中","小说",19);
        books[1]=new book("红楼梦","曹雪芹","小说",29);
        books[2]=new book("西游记","吴承恩","小说",9);
    }

    public void setarr(book books,int pose){
        this.books[pose]=books;
    }
    public book getarr(int pose){
        return books[pose];
    }

    public int getBookcontent() {
        return bookcontent;
    }

    public void setBookcontent(int bookcontent) {
        this.bookcontent = bookcontent;
    }
}
